package com.lntu.meeting.service.impl;

import com.lntu.meeting.mapper.DeleteMapper;
import com.lntu.meeting.pojo.Notes;
import com.lntu.meeting.service.DeleteService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.text.ParseException;
import java.text.SimpleDateFormat;
import java.util.Calendar;
import java.util.Date;
import java.util.List;
import java.util.TimeZone;

@Service
public class DeleteServiceImpl implements DeleteService {
    @Autowired
    private DeleteMapper deleteMapper;
    @Override
    public Integer deleteByiId(Integer id) {
        Integer resultNum = -1;
           if (id!=null){
               resultNum = deleteMapper.deleteOne(id);
           }
           return resultNum;
    }

    //1queryid

    @Override
    public List<Notes> queryId(Integer id, Date date) {

        if (id!=null && date !=null){
            List<Notes> notes = deleteMapper.queryByid(id, date);
        }


        return notes;
    }
}
